/****************************************************************************

Force Engine v0.5

Creado: 28/03/08
Clase: ForceGame.cpp
Hecho by: German Battiston AKA Melkor

****************************************************************************/

//---------------------------------------------------------------------------
#include "ForceGame.h"
#include "../Src/Force Game/MyGame/MyScene.h"
//---------------------------------------------------------------------------
ForceGame::ForceGame(HINSTANCE hInstance)
:
Game(hInstance),
m_pkMyScene(NULL)
{
	setCurrentScene(m_pkMyScene);
}
//---------------------------------------------------------------------------
bool ForceGame::OnInit()
{
	m_pkMyScene = new MyScene(* m_pkGraphics);
	m_pkMyScene->Init(m_pkInput);

	return true;
}
//---------------------------------------------------------------------------
bool ForceGame::OnLoop()
{
	m_pkMyScene->Update(m_pkTimer->GetTimeBetweenFrames());

	m_pkMyScene->Draw();

	return true;
}
//---------------------------------------------------------------------------
bool ForceGame::OnDeInit()
{
	m_pkMyScene->DeInit();
	delete m_pkMyScene;
	m_pkMyScene = NULL;

	return true;
}
//---------------------------------------------------------------------------
ForceGame::~ForceGame()
{
	
}
//---------------------------------------------------------------------------